package com.yc.navy.goods.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yc.navy.goods.dto.BalanceInfoDTO;
import com.yc.navy.goods.service.IBalanceInfoService;

@RestController
@RequestMapping("/balances")
public class BalanceFeignClientController {
	@Autowired
	private IBalanceInfoService balanceInfoService;
	
	@RequestMapping("/updateNum")
	Integer updateNum(@RequestBody BalanceInfoDTO balanceInfoDTO) {
		return balanceInfoService.updateNum(balanceInfoDTO);
	}
	
}
